ci: Constrain parallel build jobs
authorJonathan Lebon <jonathan@jlebon.com>
Thu, 16 Jul 2020 15:42:57 +0000 (11:42 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Thu, 16 Jul 2020 19:44:34 +0000 (15:44 -0400)
commit92284f9b8107078d93423f772929bed0ab15e75b
treea2bee80c92fe0938257f968cf5ad06768cd2f540
parent4752dd02cfddd3f7c102e7fdd4dcca9a1aeee1a1
ci: Constrain parallel build jobs

The default `_NPROCESSORS_ONLN` heuristic we have isn't cgroups aware.
So it thinks it has e.g. 40 CPUs when running in a k8s pod. This can
then blow through our allocated resource limits.

Declare some modest amount of RAM and CPU resources and override `make`
parallelism.

This matches what rpm-ostree now does in
https://github.com/coreos/rpm-ostree/pull/2155.
.cci.jenkinsfile
ci/libbuild.sh